package com.example.springboottest.student.service;

import com.example.springboottest.student.dao.StudentDao;
import com.example.springboottest.student.entity.StudentEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentServiceImpl implements StudentService {

    @Autowired
    StudentDao studentDao;
    @Override
    public List<StudentEntity> getOne(Integer s_id) {
        return studentDao.getOne(s_id);
    }

    @Override
    public void save(StudentEntity studentEntity) {
        studentDao.save(studentEntity);
    }


}
